package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageParam;
import com.itheima.entity.Result;
import com.itheima.pojo.OrderMemberSetmealVo;

import java.util.Date;
import java.util.List;
import java.util.List;
import java.util.Map;

/**
 * 体检预约服务接口
 */
public interface OrderService {

    //体检预约
    public Result order(Map map) throws Exception;

    //根据id查询预约信息，包括体检人信息、套餐信息
    public Map findById(Integer id) throws Exception;

    List<Map> findByDate(String telephone , String startDate, String endDate) throws Exception;
    Map findOrderDetailsById(Integer id) throws Exception;

    List<Integer> findOrderCountByday(List<String> list);

    List<Integer> findvisitCountByday(List<String> list);


    //查询会员与预约数据
    OrderMemberSetmealVo findOrderAndMemberById(Integer orderId);

    //修改预约信息
    Result edit(OrderMemberSetmealVo oms, Integer setmealId );

    //删除预约信息
    void deleteOrder(Integer orderId);

    //新增预约信息
    Result addOrder(Map map) throws Exception;

    //按钮修改预约状态
    void changeStatus(Integer orderId, String orderStatus);

    //分页查询
    PageResult findPage(QueryPageParam param);
}
